package com.analysis.apresunday.config.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class GlobalException extends RuntimeException{
    //状态码
    private Integer code;
    //信息
    private String msg;

    @Override
    public String toString() {
        return "GlobalException{" +
                "message=" + this.getMessage() +
                ", code=" + code +
                '}';
    }
}


